<?php
/**
* @author: Pham Van Diep
* @date: 18/2/2014
*/
$strUrlBack = isset($_SESSION[SESSION_BACKURL]) ? $_SESSION[SESSION_BACKURL] : HOST_BACKEND;
if( !isset($AppUI) ||
    !isset($_SESSION['club']) ||
    (isset($_SESSION['club']) && ! isset($_SESSION['image']) )
) {
	redirect($strUrlBack);
}

$intImageId = (int)$this->input->get('id', 0);
$row        = $this->image->get($intImageId);

$this->smarty->assign('row', $row);
$this->smarty->assign('back', $strUrlBack);
//$this->smarty->assign('arrType', $arrType);
//$this->smarty->assign('arrRoom', $arrRoom);
$this->smarty->display('image/edit.tpl');